Investigation of the curing reaction mechanism of polyester and polyesterimide wire enamels