Photophysics of single-walled carbon nanotubes and their applications