Corrosion control of magnesium for stent applications