relationship between thyroid function tests and sleep quality