Criteria for failure of materials under cyclic thermal loading