Esters of poly(thio)phosphonic acids