Mechanism of Consciousness During Life, Dream and After-Death