South Korea agrees to unfreeze Iranian funds