The physical origin of the soul