Introduction to Thermodynamics of Mechanical Fatigue