AI and the future of work: Risks and opportunities