Developing in situ ATR-IR spectroscopy for investigating energy electrocatalysis