Measuring wear by combining friction force and dynamic force microscopy