Tesla’s global sales shot up 25% in the second quarter in a sign that Elon Musk’s EV maker may be turning a corner.