Synthesis and self-assembly of terpyridine end-capped poly(N-isopropylacrylamide)-block-poly(2-(dimethylamino)ethyl methacrylate) diblock copolymers.