Simultaneous recording and marking of brain microstructures