Dynamical phase transitions in the two-dimensional ANNNI model