Statistical damage constitutive model for rocks subjected to cyclic stress and cyclic temperature