Elon Musk's SpaceX has overtaken Amazon to become the world's fifth-most valuable company after a blistering post-IPO rally.