China has gone past Japan to become the world's second largest economy, and is closing in on the United States.