Thermoeconomic analysis method for optimization of combined heat and power systems