Transcranial magnetic stimulation in cognitive rehabilitation