How vagus nerve stimulation can treat epilepsy, depression, and stroke