Closed-loop optimization of transcranial magnetic stimulation with electroencephalography feedback | Synapse