Text this: Intramolecular electron-induced proton transfer and its correlation with excited-state intramolecular proton transfer