Dreaming is linked to improved memory consolidation and emotion regulation