Synthesis, characterization and properties of polymers containing simultaneously the imine and amide moieties