Diffusiophoresis in Polymer and Nanoparticle Gradients