Electron transfer at electrodes and in solution: Comparison of theory and experiment