Study on the influence of size and surface effects on the physical properties of CdS and ZnS nanostructures