Past and future sea-level change from the surface mass balance of glaciers