The Chinese electric-vehicle maker guided for higher deliveries in the third quarter after a challenging second quarter.