Polycondensates having carboxylic or carbonic ester groups in the main chain {prepared from hydroxycarboxylic acids and/or lactones}