Energy transfer in luminescent materials: A random walk problem with variable step length