Structure characterization of plasma-deposited TiN coatings