Dynamic transitions in the effective connectivity of interacting cortical areas