Zaslat SMS: One-dimensional analysis of gas diffusion-induced Cassie to Wenzel state transition