irregular menses thyroid function