A theoretical study of carbon chemisorption on nickel surfaces