Optical spectroscopy of opal matrices with CdS embedded in its pores: Quantum confinement and photonic band gap effects