Variational Approach to Contact, Friction and Wear Problems