Electrochemical oxidation of tropanes