Electrochemical processing of carbon nanotubes