Protecting topological order by dynamical localization