Anticorrosive magnesium phosphate coating on AZ31 magnesium alloy