A tool for the analysis of energy systems in Smart Cities