Rectification and space-charge-limited currents in CdS films