A Three-Dimensional Model of Two-Phase Flows in a Porous Medium Accounting for Motion of the Liquid–Liquid Interface