Sequential histone-modifying activities determine the robustness of transdifferentiation