Photochemical studies toward the synthesis of natural products