Production of CdS nanoparticles with different methods and their usage in waste-water treatment