Anodic chlorination of aniline in N,N-dimethyl-formamide and N,N-dimethylacetamide