Tesla laid off hundreds of people. The company’s supercharger network has been a striking success. So why did Elon Musk hit that team with devastating layoffs?