Electrochemical synthesis of ferrate using boron doped diamond anodes