Closed-Loop BCI for the Treatment of Neuropsychiatric Disorders