Temperature-resolved X-ray diffractometry as a thermoanalytical method