Existence and stability of steady-state solutions of the shallow-ice-sheet equation by an energy-minimization approach