how does menopause lead to osteoporosis