Synthesis, characterization and thermogravimetric study of zinc and cadmium acetates–polyaniline hybrids