Mechanisms of photochemical reactions in solution