The Flash, Arrow y Legends of Tomorrow