The Future of Artificial Intelligence: Opportunities and Challenges for Society