Polyaniline–CuO hybrid nanocomposites: synthesis, structural, morphological, optical and electrical transport studies