Ternary II–VI compounds for optical waveguides