Evolutionary stability in repeated games played by finite automata