Size-dependent nonlinear optical properties and thermal lens in silver nanoparticles