Improved sweep efficiency due to foam flooding in a heterogeneous microfluidic device