A review on magnesium alloys as biodegradable materials