Novel smart and self-healing cerium phosphate-based corrosion inhibitor for AZ31 magnesium alloy