Preparation of nanocomposites of polyaniline and inorganic semiconductors