Thermal emission spectrometer