X-ray diffraction method