Catalytic role of nickel, palladium, and platinum in the formation of carbon nanoclusters