Mobile agents in wireless sensor networks to improve the coordination of emergency response teams