Sensor applications of attenuated total reflection infrared spectroscopy.