Modelling the effect of oil on foam for EOR: Local equilibrium behavior