Effects of phonetic variation and the structure of the lexicon on the uniqueness of words