 A model of sustainable energy management for cities of the future : Smartcity Malaga, Espagne