Applications of nanomaterials in water treatment and environmental remediation