Resonant optical scattering in nanoparticle-doped polymer photonic crystals