Model for reversible nanoparticle assembly in a polymer matrix.