Tesla's pivot to robotics and energy could offset auto headwinds for long-term investors.