Purification and characterization of single-walled carbon nanotubes