Tesla's Shanghai plant might have rescued Q2 results, analysts say