Effect of growth parameters on structural and optical properties of CdS nanowires prepared by polymer controlled solvothermal route