The Thermomechanics of Plasticity and Fracture