Connectivity and dynamics underlying synaptic control of the subthalamic nucleus