X-ray absorption spectroscopy and electrochemical studies of Pt-Sn electrocatalysts