Electronic interaction in composites of a conjugated polymer and carbon nanotubes: first-principles calculation and photophysical approaches