Sequential approach to the synthesis of 'U and Z' shaped polycyclic heteroarenes.