A general approach to the synthesis of natural products containing five-membered heterocycles