The Exergetic Analysis for Energy Systems Diagnosis