Microstructural study of CdS/opal composites