Thermodynamic conditions for the formation of dioxin