Influence of organic ligands on the formation and functional properties of CdS nanostructures