Japanese scientists invent mind-reading device