Thinking, Recording, and Writing History in Ancient Japan: The Nihon shoki as a Text of Transition