pH-responsive host–guest polymerization and blending