Synthesis and characterization of ionomers based on telechelic phosphonic polyether or aromatic polyesters