Preparation and properties of conductive polymer nanocomposites