Internal Dynamics Determine the Cortical Response to Thalamic Stimulation