Structural studies of phase transitions in crystalline and liquid halides (ZnCl2, AlCl3) under pressure