Neuroscience: how magnets can power memory