China has overtaken the United States as the largest economy in the world.