Text this: Dynamics of snap-off and pore-filling events during two-phase fluid flow in permeable media