Importance of chromophore environment on the near-infrared absorption of polymeric waveguides.