Effect of heterogeneity on the performance of immiscible displacement with horizontal wells