Visible and near ultraviolet photocurrent generation in carbon nanotubes