Electrochemical formation and stability of polyaniline films