The deposition and film properties of reactively sputtered titanium nitride