Dynamic pH-dependent swelling properties of a hydrophobic polyelectrolyte gel