Synthesis of cadmium sulfide in situ in reverse micelles and in hydrocarbon gels