Size-dependent second-harmonic generation from gold nanoparticles