Work of adhesion and fretting: influence of material surface properties and medium