Mechanism of electrochemical synthesis of copper(II) β-diketonates