Fabrication of multi-functional porous microspheres in a modular fashion for the detection, adsorption, and removal of pollutants in wastewater.