Adsorption of organic dyes from wastewater by metal-doped porous carbon materials