In-situ polymerized polyaniline films