Modeling of miscible CO2 foam displacements with oil