who controlled korea in the 1700s?