Porous membrane controlled polymerization of nanofibers of polyaniline and its derivatives