Grain size effect on the optical properties of thin silver films