Roles of volatiles H2O, CO2, and S in magma degassing and eruption dynamics