Real-time simulations of photoinduced coherent charge transfer and proton-coupled electron transfer