Tailoring of polymer-nanomaterial interactions