Chemical modification of single-walled carbon nanotubes with sulfur-containing functionalities