Functionalized polyaniline:chitosan nanocomposites as a potential biomaterial