Infrared attenuated total reflection spectroscopy at the metal-electrolyte interface