Thermodynamic assessment of downhole heat exchangers for geothermal power generation