Suffix automata