New figures show that China has overtaken Japan as the world’s second largest economy in the second quarter.