The world’s 10 most valuable companies grew by $4.2 trillion amid the shadow of war