Step-by-step stability analysis of shallow grid shells: Buckling versus snap-through