Association Between the Self-reported Duration and Quality of Sleep and Cognitive Function Among Middle-aged and Older Adults in China.