Hysteresis effects of martensitic transformation during thermomechanical cycling