Friction, wear and deformed structure of Ag and Ni under early stages of scratching