Excitation-diffusion-limited energy transfer in solids I. Theory of the dynamics