When Sarah, 36 years old and severely depressed, sat down in a lab with a head full of surgically implanted sensors last year, the last thing she expected was to spontaneously cackle. She hadn’t laughed like that — a real, unforced laugh — in five years. But something had happened: A subtle…