Theoretical Study of Oxygen Adsorption on Graphite and the (8,0) Single-walled Carbon Nanotube