Static and dynamic behavior of multiphase porous media: Governing equations and finite element implementation.