Modifications and Applications of 1D and 2D Nanomaterials for the Environmental and Energy Nexus