Characterization of platinum electrodes by infrared spectroscopy