A study of fretting wear with particular reference to measurement of residual stresses by X-ray diffraction