Estrogen receptor polymorphism predicts the onset of natural and surgical menopause