A Multiagent System for Coordinating Ambulances for Emergency Medical Services