Ternary semiconductors of type IB-III-VI2 and IIB-IV-V2