Photoluminescence from a soluble semiconducting polymer in waveguide and microcavity configurations