Chemical modification of acrylamide gels: verification of the role of ionization in phase transitions