Corrosion mechanism and evaluation of anodized magnesium alloys