Geometric and Statistical Analysis of Porous Media