Tesla will stop producing the Model S and Model X next quarter as Elon Musk shifts focus to autonomy and robots.