Predicting brain stimulation through network dynamics