Impact of Cations and Framework on Trapdoor Behavior: A Study of Dynamic and In Situ Gas Analysis