A simple preparation of a stable CdS-polyacrylamide nanocomposite: structure, thermal and optical properties.