Theoretical study on the molecular mechanism of the [5 + 2] vs. [4 + 2] cyclization mediated by Lewis acid in the quinone system.