Tesla CEO Elon Musk closed out his three-day trip to China with a visit to his company's Gigafactory in Shanghai, where he addressed hundreds of employees.