Thermal infrared spectroscopy