Studies on soft and hard Template-synthesized nano micro polyaniline materials and a study of their electric and chemosensor properties