Medical application of magnesium and its alloys as degradable biomaterials