Phase equilibria and intermetallic phases in the Ni-Si-Mg ternary system