Stability analysis of the incompressible porous media equation and the Stokes transport system via energy structure | Synapse