Neural correlates of prospective and retrospective memory