As it rose to become one of the world's most valuable companies, Tesla has generated substantial wealth for early shareholders.