Role of shelf morphology in grounding-line stability: a numerical approach