Environmentally benign conversion of waste polyethylene terephthalate to fluorescent carbon dots for "on-off-on" sensing of ferric and pyrophosphate ions.