Many employees will need to “substantially change the work they do” as the artificial-intelligence revolution takes hold, McKinsey analysts say.