The impact of wettability and core-scale heterogeneities on relative permeability