Simulation of the Optical Absorption Spectra of Gold Nanorods as a Function of Their Aspect Ratio and the Effect of the Medium Dielectric Constant