Fick and Fokker–Planck diffusion law in inhomogeneous media