Synthesis, characterization, optical and electrical properties of nanostructured poly(aniline-co-o-bromoaniline) prepared by in-situ polymerization method