by measuring the energy-dispersion spectrum of diffracted radiation