Productivity In Historical Linguistics: Computational Perspectives On Word-Formation In Ancient Greek And Sanskrit