Steady-State Surface-Elevation Distribution of Idealized Glaciers and Rivers