Molecular interactions of polyimides with single-walled carbon nanotubes