Synthesis of N,N-dimethylaminoethyl methacrylate copolymers with N-vinyl caprolactam and their complexing and flocculating behavior