Simultaneous sorption and mechanical entrapment during polymer flow through porous media