Characterization of titanium nitride layer on titanium alloy