Time-dependent response of ionic polymer networks to pH and ionic strength changes