Synthesis and characterization of acrylated and methacrylated epoxypolyamides and their photocrosslinking by uv radiation