Single polymer gating of channels under a solvent gradient.