Elevated thyroid-stimulating hormone levels are associated with poor sleep: a cross-sectional and longitudinal study