Tesla halts most output at Shanghai plant