Smart polymeric hydrogels