Seizures can cause memory loss, and brain-mapping research suggests one reason why