Mood and anxiety disorders, and sleep quality among elderly residents in nursing homes: is there a relationship?