Polarization state control of light by single-walled carbon nanotubes