Variational Continuum Multiphase Poroelasticity: Theory and Applications