Which equation governs the flow of water through a porous medium, considering both Darcy's law and the continuity equation?