Use of Fick's law and Maxwell–Stefan equations in computation of multicomponent diffusion