Hydraulic fracturing and geothermal energy