A continuum theory of porous media saturated by multiple immiscible fluids: II. Lagrangian description and variational structure