Energy Systems for Smart Cities. The situation in Trento