Elon Musk buys ticket for Richard Branson's spaceflight as Virgin chief becomes first to reach edge of space