Density functional studies on the Nazarov reaction involving cyclic systems.