Temperature-induced phase transition of poly(N,N-dimethylaminoethyl methacrylate-co-acrylamide)