Generalized Ginzburg-Landau equations for phase transition-like phenomena in lasers, nonlinear optics, hydrodynamics and chemical reactions