Nanoparticle-loaded aerogels and layered aerogels cast from sol-gel mixtures.