Software-defined Control of Emergency Vehicles in Smart Cities