Environmental and energy applications of green-synthesized semiconductor nanomaterials: from photocatalysis to smart sensors | Synapse