A study of the friction and wear performance of MoSx thin films produced by ion beam enhanced deposition and magnetron sputtering