Optical properties of CdS nanowires prepared by dc electrochemical deposition in porous alumina template