The effect of the hetero-ring structure on the physico-chemical properties of polyimides and poly-1,3,4-oxadiazoles