Scattering by two and three spheres computed by the generalized multipole technique