Private companies, not universities, are pioneering artificial intelligence research and reaping almost all the gains.