thyroid function mechanism