The relationship between anxiety and sleep quality in different age groups