Self-catalyzed Gelling Synthesis of Aerogels with Inorganic and Organic Nanocomponents for Thermal Insulation and CO2 Capture