Electrostatic sensing and electrochemistry with single carbon nanotubes