A versatile hydrogel platform for oil/water separation, dye adsorption, and wastewater purification