Implicit hybrid upwinding and advanced nonlinear solver for multiphase flow and transport in porous media