Explosive eruptions at mid-ocean ridges driven by CO2-rich magmas