Structural factors in the deposition of carbon on nickel