Photoluminescence as a probe of semiconductor surfaces: CdTe and CdS