Behavioral flexibility is associated with changes in structure and function distributed across a frontal cortical network in macaques