Assessing the impact of hierarchical geological heterogeneities on geothermal energy production