Optical and Optoelectronic Performances of Quasi-Rectangular Cross-Sectional Sn-Doped CdS Nanowires