Substrate-Assisted Carbon Dioxide Activation as a Versatile Approach for Heterocyclic Synthesis