A P1/P1 Finite Element Framework for Taking Into Account Capillary Effects in Biphasic Flow Simulations