Study on the non-linear refraction of silver nanoparticles with aggregation effect