A thermodynamic model for material fatigue under cyclic loading