Preparation of TiNx thin films using r.f.–d.c. coupled magnetron sputtering in Ar–N2 gas plasma