Chemical infrared spectroscopy