Biological behavior of magnesium-substituted hydroxyapatite during bone repair.