Strain hysteresis of polymers