Implantable electronic device could stop epileptic seizures