The world's second-largest economy grew by 6.7 percent in the April-June quarter, narrowly beating estimates of a 6.6 percent expansion.