titanium nitride layers a less than 30 nm thickness are formed by physical vapor deposition and used as barrier layers for tungsten deposition . the titanium nitride layers are annealed in the presence of nitrogen or a nitrogen compound .