The surface chemistry of CN and H on Pt(111)