Behaviour of polyaniline electrodes in aqueous and organic solutions