Kinetics of discontinuous volume–phase transition of gels