A new book tells the story of how Elon Musk and other Silicon Valley entrepreneurs became angry admirers of authoritarianism.