In situ X-ray absorption spectroscopy and X-ray diffraction of fuel cell electrocatalysts