Oxygen diffusion and charge transport in the cuprate superconductors