On the energy spectra of single-particle states in nuclei