Phonotactics, graphotactics and contrast: the history of Scots dental fricative spellings