Which of the following gives rise to the line spectra obtained from atoms?