CO2 sequestration coupled with enhanced gas recovery in shale gas reservoirs