Kinetics and mechanism of the reaction of alkoxymethylidene malonate and malononitrile with hydrazines and anilines