Detection of thermal stress in insulators by thermomechanical analysis