Gonadotropin secretion in hyperthyroidism and hypothyroidism