Modeling nonwetting-phase relative permeability accounting for a discontinuous nonwetting phase