Solution of the time-dependent diffusion equation for layered diffusive media by the eigenfunction method.