A theoretical analysis of the Kohn-Sham and Hartree-Fock orbitals and their use in the determination of electronic properties