Comparison between different ways to determine diffusion coefficient and by solving Fick’s equation for spherical coordinates