Silicon-containing halogenated poly(amides) derived from diacids with aminoacidic and imidic moieties in the side chain: synthesis, characterization, optical studies and thermal properties.