Effect of Ti or TiN codeposition on the performance of MoS2-based composite coatings