Surface mass balance downscaling through elevation classes in an Earth system model