Theoretical evaluation of gas/solid mass transfer in foams and other filamentous media