Electronic properties of metal nanorods probed by surface-enhanced Raman spectroscopy