From crisis to opportunity: Rebuilding cities with safer energy