Synthesis of imidazolidinone containing an ammonium nitrogen atom in the ring