Consciousness as a controlled hallucination