Theory of chemical reactions in condensed media and its applications to biological processes