Formulations of the Elastodynamic Equations in Anisotropic and Multiphasic Porous Media from the Principle of Energy Conservation