Invariant and univariant eutectic solidification in ternary alloys