Deviations from Vegard's law and evolution of the electrocatalytic activity and stability of Pt-based nanoalloys inside fuel cells by in operando X-ray spectroscopy and total scattering.