Big truck sales in the U.S. — and a hot-selling new SUV in China — drove strong gains for GM in the second quarter.