Deposition of carbon and its hydrogenation catalyzed by nickel