Effect of metallic nanoparticle sizes on the local field near their surface