Chemical sensors based on multiresponsive block copolymer hydrogels