Synthesis of N-Methylated Polyamides and Copolyamides