Substrate binding and enzyme function investigated by infrared spectroscopy