The effects of dream deprivation: implications for a theory of the psychological function of dreaming