Influence of Wettability on Residual Gas Trapping and Enhanced Oil Recovery in Three-Phase Flow: A Pore-Scale Analysis by Use of Microcomputed Tomography