Transfer diffusion. I. Theoretical