Greener approach to nanomaterials and their sustainable applications