Chemistry of carbon nanotubes