The economy expanded 5.4% in the second quarter from a year ago, hobbled by tepid consumption demand and a weakening in the mining sector