The Ethics of AI: How to Ensure That Artificial Intelligence is Used for Good