Softening temperature of glassy polymers as affected by residual stresses