Wells for geothermal heating