Artificial intelligence has potential for harm that 'boggles the mind'