Thermodynamic optimization of the operative parameters for the heat recovery in combined power plants