A computational approach to the study of bone quality in osteoporosis