On the mechanics of ice-stream shear margins