Electrosynthesis of ferrates with diamond anodes