Investigation of corrosion resistance and formation mechanism of calcium-containing coatings on AZ31B magnesium alloy