CdS nanoparticles: structural and energetical correlations