Understanding the interaction of organic functional groups with single-walled carbon nanotubes (SWNTS) for solution processable electronics