The world’s fifth-biggest economy grew 7.8% in the three months through June from the same quarter last year