Closed-Loop Control of Deep Brain Stimulation: a Simulation Study