IR spectroscopy and spectrometer