A density functional theory study of oxygen diffusion in LaAlO3 and SrTiO3