Solution for Fick's 2nd law with variable diffusivity in a multi-phase system