Relationship between body mass index and osteoporosis