Thermal shock and fracture in crystals of magnesium oxide