A derivation and comparison of two equations (Landau–Ginzburg and Cahn) for the kinetics of phase transitions