Synthesis of conducting polyaniline in semi-IPN based on chitosan