Synthesis, characterisation and properties of polyanilines containing transition metal ions