Doctors are using devices to fight epilepsy, Parkinson’s, and more