Electrochemical reactions of cyclopentadienes in non-aqueous media