Study on the environmentally friendly anodizing of AZ91D magnesium alloy