Absorption technique for determining emission spectra