An investigation of the association between cognition and depression with sleep quality as a mediator among older adults