The last two major Chinese dynasties in its history were the _____.