Thermodynamic Optimization of a Geothermal Power Plant with a Genetic Algorithm in Two Stages