A spectroscopic study of the fluorination and defluorination reactions on single-walled carbon nanotubes