Effects of sleep on cognitive processes