X-ray study sheds light on cost-effective fuel cell materials