Experimental aspects of attenuated total reflectance spectroscopy in the infrared