Consequences of glacial cycles for magmatism and carbon transport at mid-ocean ridges