The microstructure of type 304 stainless steel implanted with titanium and carbon and its relation to friction and wear tests