Artificial intelligence carries a huge upside. But potential harms need to be managed