Influence of the nitrogen partial pressure on the properties of d.c.-sputtered titanium and titanium nitride films