implanted brain-recording and muscle-stimulating system