Phase transitions of cellular automata