The ethics of artificial intelligence