Pericyclic reactions in the synthesis of natural products