Elon Musk is set to become the world's first trillionaire after his rocket firm SpaceX laid out plans for the biggest stock market listing ever.