University of Waterloo stabbing was hate crime, not terrorism: judge