Tuning the rate of an outer-sphere electron transfer by changing the electronic structure of carbon nanotubes