Thermomechanical assessment of damage in composites