Synthesis of HCl doped polyaniline–CdS nanocomposite by use of organometallic cadmium precursor