Synthesis of copolyamide–esters and some aspects involved in their hydrolysis by lipase