Varieties of Self-Awareness and Their Uses in Natural and Artificial Systems Metacognition and natural cognition