Modeling multicomponent organic chemical transport in three-fluid-phase porous media