Aerogels for energy and environmental applications