Breathing as a Periodic Gas Exchange in a Deformable Porous Medium