Nonlinear analysis of hydrodynamic instability in laminar flames—I. Derivation of basic equations