The effect of environment on the mechanism of fretting fatigue