GM, paced by pickups, gains 16% in July