nightmares as extensions of the waking state