Mechanics and materials in fretting