Environmental Remediation with Functional Aerogels and Xerogels