Oxygen doping in CdTe, CdS and ZnS