Investigation of the Truce-Smiles rearrangement of perfluoroarenes and its application to the synthesis of polycyclic heterocycles