New X-ray diffraction method for materials science