Continuous-time finite element analysis of multiphase flow in groundwater hydrology