Quantitative K-Cl-S chemistry in thermochemical conversion processes using in situ optical diagnostics