Preparation and photochemistry of single wall carbon nanotubes having covalently anchored viologen units.