Simulations of the ternary eutectic structures Al-Cu-Ag and Al-Ni-Cr