Tesla håller på att bli ett halvledarföretag som råkar tillverka robotar och stora batterier.