Microstructural evolution at the worn surface: a comparison of metals and ceramics