Electron density effects in surface plasmon excitation on silver and gold electrodes