Theoretical and experimental studies of the effects and behavior of magnetic fields generated during transcranial magnetic stimulation