Effect of different capping environments on the optical properties of CdS nanoparticles in reverse micelles