Analysis of thermoelastic effects accompanying the deformation of PMMA and PC polymers