Somnotate: A probabilistic sleep stage classifier for studying vigilance state transitions