Flagellum couples cell shape to motility in Trypanosoma brucei