An impedance study of polyaniline films in aqueous and organic solutions