A theoretical derivation of cellular structures of flames