Dependence of structural, vibrational spectroscopy and optical properties on the particle sizes of CdS/polyaniline core/shell nanocomposites