Brain Dynamics Underlying Cognitive Flexibility In Typical And Atypical Development