Polycrystalline CdS photocorrosion studied by capacitance and action spectra measurements