Studies on the influence of chloride ion and pH on the corrosion and electrochemical behaviour of AZ91D magnesium alloy