The electric car company plans to build its third gigafactory in Shanghai.