Titanium nitride layer formation by TIG surface melting in a reactive environment