A Theoretical Study of Carbon Chemisorption on Ni(111) and Co(0001) Surfaces