X-ray diffraction spectrometry for the analysis of crystalline solid phases