Electrochemical preparation of metal cluster compounds