Adaptive Bayesian Optimization for State-Dependent Brain Stimulation