Synthesis of hierarchical MgO based on a cotton template and its adsorption properties for efficient treatment of oilfield wastewater