Multicomponent synthesis of 6H-dibenzo[b,d]pyran-6-ones and a total synthesis of cannabinol.