Nightmare after trauma as paradigm for all dreams: a new approach to the nature and functions of dreaming