X-ray structural investigation on a series of polyesteramides