Sex and Age Differences in Near-infrared Spectroscopy Responses and the Resulting Influences on Cognition