Friction and wear mechanisms of thermally sprayed ceramic and cermet coatings