The Effect of Wettability on Three-Phase Relative Permeability