Thermodynamic insights on pathways to formation of chlorinated dioxins and dibenzofurans