Workplace tensions and resentment will rise if top performers benefit more than everyone else from artificial-intelligence tools. But there are things companies can do to level the playing field.