Studies on conducting polymers and their nanocomposites: Morphological, mechanical, electrical and optical properties