One-electron hamiltonian method for open-shell states