The tendency of AMg5 alloy towards intercrystalline corrosion