The effects of sleep deprivation on cognitive function