CO dissociation and O removal on Co(0001): a density functional theory study