Convenient method of esterification of polyphosphonic acids