Theoretical analysis of the condensation of combustion products in thin gaseous layers