Analysis of the surface photovoltaic effect in photoconductors: CdS