Which country isolated itself from outside influences from the seventeenth century through much of the nineteenth century?.