Automatic derivation of phonological rules for mispronunciation detection in a computer-assisted pronunciation training system