Exploiting fast exciton diffusion in dye-doped polymer nanoparticles to engineer efficient photoswitching