A density functional theory study of CO and atomic oxygen chemisorption on Pt(111)