Experimental and theoretical studies for the mechanism of DDQ mediated oxidative cyclization of N-aroylhydrazones.