gland responsible for the production of thyroid hormones