Your brain may offer clues to better mental healthcare. Here’s how technology could use them for better results.