Adsorption and desorption measurements of CO and O2 on cobalt