Switching from ultrafast electron transfer to proton transfer in excited drug-protein complexes upon biotransformation