Time-resolved X-ray diffraction from liquid crystalline systems: Thermotropic phase transitions and the effect of applied electric fields