Nightmares as Extensions of the Waking State