Functionalized nanomaterials for environmental applications