Corrosion inhibition of magnesium alloy in NaCl solution by ionic liquid: Synthesis, electrochemical and theoretical studies