Increasing thermal stability of piperazidine polyamides after ultraviolet irradiation