Pore-Scale Study of the Flow of Oil and Water through Polymer Gels