Effect of Mg segregation at grain boundaries on corrosion behavior of intermetallic compound Ni3Al(B)