Birth weight and age at menarche in patients with polycystic ovary syndrome or diminished ovarian reserve, in a retrospective cohort