Circular words and automata minimization