Scientists 'discover how to read minds'