Tesla to Build Auto Factory in Shanghai