Process-based modeling of ice stream shear margins and their effect on ice stream stability