Linking neural activity to mental processes