ternary compounds