The rise of AI is making the future of work look bleak – but it could be an opportunity