Pore-scale mechanisms of CO2 storage in oilfields