thyroid regulation mechanism