Surfactant-mediated variation of band-edge emission in CdS nanocomposites