Polyesters containing atoms other than carbon, hydrogen and oxygen containing phosphorus {derived from hydroxy carboxylic acids}