Composition and replay of mnemonic sequences: The contributions of REM and slow-wave sleep to episodic memory.