Elon Musk is weighing a potential merger between Tesla and SpaceX, a move that could create a $3.5 trillion technology giant.