Dielectric and Optical Properties of CdS–Polymer Nanocomposites Prepared by the Successive Ionic Layer Adsorption and Reaction (SILAR) Method