Surface modification of medical implants and surgical devices using TiN layers