Wellbore heat transfer in CO2-based geothermal systems