Brain implant restores control of paralyzed muscles