Implication of thyroid function in periodontitis: a nationwide population-based study