Mechanism of CO2 enhanced oil recovery in shale reservoirs