CO adsorption and dissociation on Pt(111) and Ni(111) surfaces