Particle-precipitation-aided chemical vapor deposition of titanium nitride