Special factors and the combinatorics of suffix and factor automata