How Microsoft beat Apple as the most valuable public company, explained