Thermomechanical effects of a rapid depressurization in a gas cavern