Depression as a risk factor for osteoporosis