Rietveld refinement of energy-dispersive synchrotron measurements