A two-dimensional Born–Oppenheimer treatment of intramolecular electron transfer reactions