When the light from a light bulb is reflected by a diffraction grating, a continuous band spectrum is obtained (like a rainbow). When the light from a metal salt in a flame is reflected from a diffraction grating, visible, discrete lines are observed. What causes this line spectra?