Molecular orbital calculations of the chemisorption and diffusion of oxygen and water on a graphite substrate