Synthesis and Structure of Magnesium-Substituted Hydroxyapatite