A Thermoeconomic-artificial intelligence integrated approach to the diagnosis of energy systems