Anodic oxidation produces active chlorine to treat oilfield wastewater and prepare ferrate(VI)