Quantitative Modeling of the Effect of Oil on Foam for Enhanced Oil Recovery