Stability analysis of uniform equilibrium foam states for EOR processes