Wireless, fully implantable cardiac stimulation and recording with on-device computation for closed-loop pacing and defibrillation | Synapse