Evolutionary dynamics under periodic switching of update rules in structured populations