Theoretical Analysis of the Role of Diffusion in Chemical Reactions, Fluorescence Quenching, and Nonradiative Energy Transfer