Synthesis of Magnesium Oxide Hierarchical Microspheres: A Dual-Functional Material for Water Remediation