Controlling the interaction of light with polymer semiconductors