Esterification and polyesterification in ionic liquids: towards the synthesis of highly functional polyesters from renewable resources