Electronic band structure, structural phase stability and physical properties of some delafossite oxides, and ternary chalcopyrite semiconductors