Sustained attention and spatial attention distinctly influence long-term memory encoding