Visible Luminescence of Carbon Nanotubes and Dependence on Functionalization