Electronic properties of mixed barium–oxygen clusters