Thermomechanics of Glassy and Crystalline Polymers