Characterization of titanium nitride films prepared by d.c. reactive magnetron sputtering at different nitrogen pressures