Solution-grown CdS layers for polycrystalline-thin-film solar cells