A mixed-wet hysteretic relative permeability and capillary pressure model for reservoir simulations