Inside the growing promise and peril of artificial intelligence