Increased risk of cognitive impairment or dementia in women who underwent oophorectomy before menopause