Heat transport and pressure buildup during carbon dioxide injection into depleted gas reservoirs