Purification and functionalization of single-walled carbon nanotubes through different treatment procedures