Friction and Wear Behavior of a Cobalt-Based Alloy Implanted with Ti or N