Impact–induced phase transitions in thermoelastic solids