How do near-death experiences arise?