The Future of Artificial Intelligence: Opportunities and Threats