Indoor location for safety applications using wireless networks