Characterization of oxygen and titanium diffusion at the anatase TiO2(001) surface