How grammaticalization processes create grammar: From historical corpus data to agent-based models