Geothermal energy recovery from underground mines