Trudeau leaves mixed global legacy as he exits during turbulent time, analysts say