Intramolecular cyclization strategies for synthesizing medium-ring polycycles and the total synthesis of natural products