The total Hartree–Fock energy–eigenvalue sum relationship in atoms and ions