Learning the bistable cortical dynamics of the sleep-onset period (PLoS Computational Biology, 2026)