Predictability maximization and the origins of word order harmony