Mechanical model to evaluate the effect of the dispersion in nanocomposites