Diffusion-equation approach to describe ionic mobility in nanostructured titania