Doping of polyaniline by transition metal salts: effect of metal cation on the film morphology