Intramolecular aminolysis of amides. The cyclization of 2-aminomethylbenzamide to phthalimidine