The mechanics of materials in contact problems