Study of wide bandgap n-type CdS window layers for thin-film solar cells