A theory of multiphase binary diffusion