The Origin of Consciousness and the Mind-Body Problem