Diamond synthesis by electrolysis of acetates