Theory of photoinduced intramolecular electron transfer in condensed media