Theory of electron transfer at electrified interfaces