The magnetic effect on the wear of metals