Intramolecular cyclization in hyperbranched polyesters