Thermomechanical analysis of cracked polymeric specimens