22.4 Energy levels in atoms and line spectra