Title: Diagnosis of energy systems in developing countries