Energy states of an electron in an atom