Volatile dilution during magma injections and implications for volcano explosivity