Morphological modification of polyaniline using polyelectrolyte template molecules