Nanostructured micromaterials and devices for sensing and removing of chemical contaminants