Assessing cognitive function in cancer patients