Friction and wear of chromium and nickel coatings