An Architecture for Evacuation Route Safety Optimization in Large Smart Spaces