Immiscible foam for enhancing oil recovery