A method of preparation and characterization of magnesium-apatites