Sizing gold nanoparticles by optical extinction spectroscopy