The latter weights are determined by least-squares fitting of the individual XRF spectra. For reduction of the raw XRD data, the XRDUA program was employed. In a similar manner as for the XRF data, each individual diffractogram IXRD(x, ω, 2θ) was expressed as a linear combination of crystal phase-specific contributions: