A study of the antimicrobial and tribological properties of TiN/Ag nanocomposite coatings