Managing Capital Flows: The Case of the Republic of Korea