Thyroid disease and ovarian failure