how are absorption spectra produced