The health benefits of dreaming, from improving memory to processing emotions