Text this: X-ray diffraction method for determination of interplanar spacing and temperature distribution in crystals under an external temperature gradient