Equilibrium between volatiles and iron oxides in igneous rocks