X-ray peak profile analysis and optical properties of CdS nanoparticles synthesized via the hydrothermal method