From polymer-solvent to host-guest interactions in polymeric sorbent materials