A 3-D approach to model diffusion in randomly distributed nanocomposite