Nanostructured Gels for Energy and Environmental Applications