Brain computer interfaces in medicine