Reversible dispersion and precipitation of single-walled carbon nanotubes using a pH-responsive rigid surfactant.