Modelling the osmosis effect on solute migration through porous media