Hubbard-like hamiltonians for interacting electrons in s, p and d orbitals