Effects of chalcogen substitution on electronic properties and chemical bondings of delafossite CuAlO2