how thyroid affects fertility