Formal approaches to complexity in heritage language grammars