Kinetics of heat-induced and photochemical transformations of quinonimines and their derivatives