Nonequilibrium kinetics of the transformation of liquids into physical gels