Generalized local cohomology and the intersection theorem