Greener synthesized P-doped carbon for dual applications: selective cationic dye removal with phytotoxicity assessment and industrial effluent treatment | Synapse