The Generalized Multipole Technique for Light Scattering