Poly(amides) and poly(imides) containing silicon and germanium in the main chain : synthesis, characterization and thermal studies