Optical properties of block copolymers containing pendant carbazole groups and in situ synthesized CdS nanoclusters