Photoluminescence and electroluminescence mechanisms at polycrystalline CdS in air and in contact with aqueous electrolytes