Fabrication of nickel and nickel carbide thin films by pulsed chemical vapor deposition