A Cognitive Approach to Robot Self-Consciousness