A thermoeconomic approach to the analysis of geothermal plants