Smart scaffolds for osteoporosis treatment