New relations between modification degree, swelling and impedance in anticorrosion chitosan-derivative coatings on magnesium alloy AZ31.