When a brain injury impairs memory, a pulse of electricity may help