China has passed Japan to become the world's second-largest economy after Justin Bieber.