Hyperspherical effective interaction for nonlocal potentials