Optimizing Energy Consumption in Smart Cities' Mobility : Electric Vehicles, Algorithms, and Collaborative Economy